﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
//
using iPublic;

namespace HRecycle.SysTools
{
    /// <summary>
    /// 摄像头调试，海宏软件，周承昊
    /// 修改记录：
    ///   20180103，zch，创建基本功能
    /// </summary>
    public partial class FrmDebugCamera : Form
    {
        public iCamera camera = null;

        public FrmDebugCamera()
        {
            InitializeComponent();
        }

        private void FrmDebugCamera_Load(object sender, EventArgs e)
        {
            cameraControl1.Dock = DockStyle.Fill;
            camera = new iCamera(cameraControl1);
            camera.Start();
        }

        private void btn_close_Click(object sender, EventArgs e)
        {
            Close();
            this.Dispose();
        }

        private void FrmDebugCamera_FormClosing(object sender, FormClosingEventArgs e)
        {
            camera.cameraControl.CloseCamera();
            camera.Dispose();
        }
    }
}
